package com.biShe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小刘
 * @since 2023-05-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Orders对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "取单号")
    private String sortNum;

    @ApiModelProperty(value = "支付方式")
    private String payMode;

    @ApiModelProperty(value = "用户联系方式")
    private String mobile;

    @ApiModelProperty(value = "下单用户名")
    private String userName;

    @ApiModelProperty(value = "下单种类：takein/takeout")
    @TableField("orderType")
    private String ordertype;

    @ApiModelProperty(value = "下单用户openId")
    @TableField("openId")
    private String openid;

    @ApiModelProperty(value = "下单商品数")
    private Integer goodsNum;

    @ApiModelProperty(value = "外卖花费时间")
    private Integer sendedTime;

    @ApiModelProperty(value = "订单状态：“0订单未支付 1已下单 2制作中 3请取餐（店内）4外卖配送中（骑手拿到货的时间） 5已完成”")
    private Integer status;

    @ApiModelProperty(value = "订单状态文字描述")
    private String statusText;

    @ApiModelProperty(value = "用户评价")
    private String remark;

    @ApiModelProperty(value = "用户下单时间")
    private String createdAt;

    @ApiModelProperty(value = "制作完成时间，若用户在店内，则20分钟后判断已完成")
    private String productionedTime;

    @ApiModelProperty(value = "骑手取货时间，之后状态改为派送中")
    private String takedTime;

    @ApiModelProperty(value = "用户拿到餐，订单完成")
    private String completedTime;

    @ApiModelProperty(value = "消费金额")
    private String amount;

    @ApiModelProperty(value = "订单备注")
    private String postscript;

    @ApiModelProperty(value = "下单所属店铺")
    private Integer storeId;

    @ApiModelProperty(value = "外卖地址id")
    private Integer addressId;

    @ApiModelProperty(value = "软删除")
    @TableLogic
    private Integer deleted;


}
